<div class="wrapper">
    <div>
        <div class="box box-top">
            <!-- /.box-header -->
            <!-- form start -->
            <form id="activateLogForm" role="form" action="${base}/admin/activateLog/save" method="post">
                <input type="hidden" name="id" value="${(activateLog.id)!}">
                <div class="box-body">
                            <div class="form-group">
                                <label for="id"></label>
                                <input type="text" value="${(activateLog.id)!}" class="form-control" name="id" id="id">
                            </div>

                            <div class="form-group">
                                <label for="riderId">骑手Id</label>
                                <input type="text" value="${(activateLog.riderId)!}" class="form-control" name="riderId" id="riderId">
                            </div>

                            <div class="form-group">
                                <label for="riderName">骑手Name</label>
                                <input type="text" value="${(activateLog.riderName)!}" class="form-control" name="riderName" id="riderName">
                            </div>

                            <div class="form-group">
                                <label for="phone">手机号码</label>
                                <input type="text" value="${(activateLog.phone)!}" class="form-control" name="phone" id="phone">
                            </div>

                            <div class="form-group">
                                <label for="valid">Valid</label>
                                <select  name="valid" id="valid" class="form-control">
                                    <option value="true" <#if ((activateLog.valid)!true)==true> selected="selected" </#if>>----Valid----</option>
                                    <option value="false" <#if ((activateLog.valid)!true)==false> selected="selected" </#if>>----Invalid----</option>
                                </select>
                            </div>

                            <div class="form-group">
                                <label for="memo">Note</label>
                                <input type="text" value="${(activateLog.memo)!}" class="form-control" name="memo" id="memo">
                            </div>

                            <div class="form-group">
                                <label for="createDate">充值日期</label>
                                <input type="text" value="${(activateLog.createDate)!}" class="form-control" name="createDate" id="createDate">
                            </div>

                            <div class="form-group">
                                <label for="beginDate">开始日期</label>
                                <input type="text" value="${(activateLog.beginDate)!}" class="form-control" name="beginDate" id="beginDate">
                            </div>

                            <div class="form-group">
                                <label for="endDate">过期日期</label>
                                <input type="text" value="${(activateLog.endDate)!}" class="form-control" name="endDate" id="endDate">
                            </div>

                            <div class="form-group">
                                <label for="status">Status</label>
                                <input type="text" value="${(activateLog.status)!}" class="form-control" name="status" id="status">
                            </div>

                            <div class="form-group">
                                <label for="catagory">类型</label>
                                <input type="text" value="${(activateLog.catagory)!}" class="form-control" name="catagory" id="catagory">
                            </div>

                            <div class="form-group">
                                <label for="companyId">集团Id</label>
                                <input type="text" value="${(activateLog.companyId)!}" class="form-control" name="companyId" id="companyId">
                            </div>

                            <div class="form-group">
                                <label for="companyName">Name</label>
                                <input type="text" value="${(activateLog.companyName)!}" class="form-control" name="companyName" id="companyName">
                            </div>

                            <div class="form-group">
                                <label for="ordinal">SequenceNo</label>
                                <input type="text" value="${(activateLog.ordinal)!}" class="form-control" name="ordinal" id="ordinal">
                            </div>

                    <div class="box-footer">
                        <button type="button" onclick="$('#activateLogForm').submit();" class="btn btn-primary">Save
                        </button>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>
<script type="text/javascript">
    $(function() {
        $("#activateLogForm").validate({
            submitHandler:function(form){
                submitActivateLog();
            }
        });
    });
    function submitActivateLog(){
        HF.ajaxFormSubmit('activateLogForm',function(result){
            alert("Save Success");
            document.location.reload();
        },function(e){ alert("Save Failure");});
    }
</script>
